package com.itheima.health.service;

import com.itheima.health.entity.PageResult;
import com.itheima.health.pojo.Member;

import java.util.List;
import java.util.Map;

public interface MemberService {


    Member findMemberByTelephone(String telephone);

    void addMember(Member member);

    List<Integer> findMemberCountsByRegTime(List<String> months);

    List<Map> findMemberSexCount();

    Integer findMemberAgeCountByBirthday(String targetYear, String thisYear);

    Integer findMemberCountByBirthdayUp(String targetYear);

    void add(Member member);

    PageResult pageQuery(Integer currentPage, Integer pageSize, String queryString);

    Member findById(Integer id);

    void edit(Member member);

    void deleteById(Integer id);
}
